<head>
    <title>作业一</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
    <!-- and it's easy to individually load additional languages -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/go.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
</head>
<pre>
    <code class="language-python">
    # 获取键盘输入
    s = input() 
    d = {"DIGITS": 0, "LETTERS": 0}
    for c in s:
        if c.isdigit():
            d["DIGITS"] += 1
        elif c.isalpha():
            d["LETTERS"] += 1
        else:
            pass
    print("LETTERS", d["LETTERS"])
    print("DIGITS", d["DIGITS"])
    </code>
</pre>